<template>
  <div class="All">
    <div class="app-container-main">
      <div class="Top">
        <p>回收站</p>
      </div>
      <div class="Search">
        <a-input-search
          v-model:value="value"
          @search="onSearch"
          placeholder="请输入简历名称"
          style="width: 280px;margin-left:15px;"
        >
          <template #enterButton>
            <a-button style="background: #f5f7fa"
              ><template #icon>
                <SearchOutlined style="color: #b8bcbd" /> </template
            ></a-button>
          </template>
        </a-input-search>
      </div>
      <div class="Table">
        <delresumetableVue :datas="data"></delresumetableVue>
      </div>
      <div class="Pagination">
        <a-pagination
          v-model:current="current2"
          show-quick-jumper
          :total="data.length"
          :show-total="(total) => `Total ${total} items`"
          @change="onChange1"
          style="float:right;margin-right: 2%;margin-top: 15px;"
        />
      </div>
    </div>
  </div>
</template>

<script lang="ts">
import { defineComponent,ref } from "vue";
import { SearchOutlined } from "@ant-design/icons-vue";
import delresumetableVue from "./delresumetable.vue";
export default defineComponent({
  components: {
    SearchOutlined,
    delresumetableVue
  },
  setup() {
    const value = ref('');
    const current2 = ref(1);
    const data = ref([])
    const onChange1 = (number: any) => {
      console.log("Page: ", number);
    };

    const onSearch = (searchValue:any) => {
      console.log('use value', searchValue);
      console.log('or use this.value', value.value);
    };

    return {
      value,
      onSearch,
      current2,
      onChange1,
      data,
    };
  }
});
</script>

<style lang="scss">
.All {
  width: 98%;
  margin: 0 auto;
  margin-top: 20px;
  padding-bottom: 15px;
  .app-container-main {
    padding-bottom: 15px;
    .Top {
      width: 100%;
      height: 55px;
      line-height: 55px;
      border-bottom: 1px solid #ebeef5;
      p {
        font-size: 16px;
        margin-left: 1%;
      }
    }
    .Search {
      width: 100%;
      margin-top: 15px;
      .ant-input{
        height: 40px;
      }
      .ant-input-search-button{
        height: 40px;
        width: 60px;
        background-color: #f5f7fa;
      }
    }
    .Pagination{
      height: 50px;
    }
  }
}
</style>